# 安装NumPy（如果尚未安装）
# pip install numpy

import numpy as np
import time


arr1 = np.array([1, 2, 3, 4, 5])
arr2 = np.array([[1, 2, 3], [4, 5, 6]])

print("一维数组:", arr1)
print("二维数组:\n", arr2)
print("数组形状:", arr2.shape)
print("数组维度:", arr2.ndim)
print("元素总数:", arr2.size)
print("数据类型:", arr2.dtype)
# Output:一维数组: [1 2 3 4 5]
# 二维数组:
#  [[1 2 3]
#  [4 5 6]]
# 数组形状: (2, 3)
# 数组维度: 2
# 元素总数: 6
# 数据类型: int64